<?phpnamespace library;abstract class THAdminController extends \Phalcon\Mvc\Controller{    public function initialize()    {        $this->user         = $this->session->get("admin");        $this->_filterUser();        //Set View Var        $this->view->user   = $this->user;        $this->view->config = $this->config;    }    public function _response($msg = "", $status = 1)    {        header('Content-Type: text/html; charset=utf-8');        echo json_encode(                array(                    'status'  => $status,                    'message' => $msg                )        );        die();    }    public function _filterUser()    {        if (!$this->session->has("admin") || empty($this->session->get("admin")))        {            return $this->response->redirect("backend/access");        }    }}